﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;

namespace RFBR.Core.Infrastructure.XmlModels
{
	[Serializable()]
	[XmlRoot("KnowledgeBase")]
	public class KnowledgeBase
	{
		[XmlAttribute("Name")]
		public string Name { get; set; }

		[XmlArray("Frames")]
		[XmlArrayItem("Frame", typeof(Frame))]
		public Frame[] Frames { get; set; }

		[XmlArray("Variables")]
		[XmlArrayItem("Variable", typeof(Variable))]
		public Variable[] Variables { get; set; }

		[XmlArray("CustomObjects")]
		[XmlArrayItem("CustomObject", typeof(CustomObject))]
		public CustomObject[] CustomObjects { get; set; }
	}
}
